package com.briup.jz.service;

import com.briup.jz.bean.Product;
import com.briup.jz.bean.extend.ProductExtend;
import com.briup.jz.utils.CustomerException;


import java.util.List;

/**
 * @author 潘京博
 * @project: jz
 * @description:
 * @create: 2020/6/13 12:46
 */
public interface IProductService {
    List<Product> findAll();

    void saveOrUpdate(Product product) throws CustomerException;

    void deleteById(long id) throws CustomerException;

    List<ProductExtend> findAllWithCategory();

    ProductExtend findByIdWithCategory(long id);
}
